build: fix npm publish warnings#7
Merged
brian-smith-tcril merged 1 commit intoopenedx:mainfrom Feb 13, 2026
Merged
Conversation
Remove ./ prefix from bin paths to fix npm 11.x stripping them during publish. Add .npmignore to control published files and .gitignore *.tgz to keep packed tarballs out of the repo. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
./prefix from bin paths inpackage.jsonto fix npm 11.x stripping them during publish.npmignoreto explicitly control published files (excludes.github/,.releaserc,catalog-info.yaml, etc.)*.tgzto.gitignoreto keep packed tarballs out of the repoTest plan
npm publish --dry-run --tag prereleaseshows no warnings and only 9 expected filesLog
frontend-dev-utils Fix npm publish - Work Log
Date: 2026-02-13
Objective
Fix all npm publish warnings and errors so the package publishes cleanly.
Issues Found
1. Bin paths stripped (fixed)
npm publishon npm 11.x strips bin entries with./prefix:Fix: Remove
./prefix from bin paths inpackage.json(vianpm pkg fix).Verified: Packed tarball installed successfully and bin scripts worked as expected.
2. No .npmignore
Results in
.github/workflows,.releaserc,.nvmrc,catalog-info.yamletc. being included in the published tarball.Fix: Create
.npmignoreto explicitly control published files.3. Stale tarballs in repo
*.tgzfiles fromnpm packwere not gitignored.Fix: Add
*.tgzto both.gitignoreand.npmignore.4. Verified clean publish
After all fixes,
npm publish --dry-run --tag prereleaseproduces zero warnings — 9 files, 15.3 kB:LICENSE,README.md,package.jsontools/autoinstall/(4 files)tools/serveconfig/(2 files)Installed tarball tested and confirmed working.
Status
bsmith/fix-bin-paths-and-enable-release826106f—build: fix npm publish warnings🤖 Generated with Claude Code